'''
创建函数,根据年龄计算人生阶段
'''
def stage(age):
    '''

    :param age: #变量定义年龄
    :return: #返回人生阶段
    '''
    if age <= 6:return "童年"
    if age <= 17:return "少年"
    if age <= 40:return "青年"
    if age <= 65:return "中年"
    return "老年"


age = int(input("请输入年龄："))
dict = stage(age)
print(dict)
